package org.cb;

import java.awt.Rectangle;
import java.io.IOException;

import javax.imageio.ImageIO;

import org.cb.core.Global;
import org.cb.gui.MainGUI;
import org.cb.input.Keyboard;
import org.cb.input.Mouse;
import org.cb.scapegoat.Inventory;

/**
 * CBF to change all the author names :P
 * 
 * @author Unknown
 * 
 * The Launcher.
 *
 */
public class Launcher {
	
	/**
	 * This will initalise variables and start the GUI.
	 */
	public Launcher() {
		Global.setTheMouse(new Mouse());
		Global.setTheKeyboard(new Keyboard());
		
		Global.setScreenArea(new Rectangle(0,0,765,503));
		Global.setPlayArea(new Rectangle(0,0,518,343));
		Global.setMinimapArea(new Rectangle(513,0,250,170));
		Global.setTabArea(new Rectangle(521,167,240,340));
		Global.setChatArea(new Rectangle(0,338,518,143));
		
		Inventory.setInventory();
		
		try {
			Global.setMouseIcon(ImageIO.read(MainGUI.class.getResource("/Icons/mouse-icon-whiteO.png")));
		} catch (IOException e) {
			e.printStackTrace();
		}
		new MainGUI();
	}
	
	public static void main(String[] args) throws Exception {
		new Launcher();
	}
}
